import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
//引入初始化样式
import '@/styles/common.scss'

// 先创建并挂载应用
const app = createApp(App)
// 如果有路由，先使用路由
if (router) {
  app.use(router)
}
app.mount('#app')

//测试接口
import { getCategoryAPI } from '@/apis/testAPI'
getCategoryAPI().then(res => {
    console.log(res)
})